package com.pzb.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.core.domain.BaseEntity;

/**
 * 订单详情对象 od_order_detail
 * 
 * @author Mr_Wu
 * @date 2021-12-15
 */
public class OdOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商户id */
    private String extAppid;

    /** 订单编号 */
    private String orderCode;

    /** 商品id */
    private Long goodsId;

    private String goodsCode;

    private String goodsName;

    private String picturePath;

    /** 商品规格值1 */
    private String goodsUnit;

    /** 商品数量 */
    private Integer quantity;

    /** 单价 */
    private String price;

    /** 金额=quantity*price */
    private String amount;

    /** 评分时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date scoringTime;

    /** 商品评分 */
    private Integer score;

    /** 商品评价内容 */
    private String comment;

    /** 商家回复 */
    private String reply;

    /** 订单售后状态：0无售后，1待审核，2审核通过（即退货退款），3已驳回，4售后关闭 */
    private String serviceStatus;

    /** 售后申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationTime;

    /** 售后类型：0退货 1换货 */
    private String serviceType;

    /** 售后数量 */
    private Integer serviceQuantity;

    /** 售后金额 */
    private String serviceAmount;

    /** 售后申请描述 */
    private String serviceRemarks;

    /** 售后申请图片 */
    private String servicePicture;

    private String  expressCompany;

    private String  expressNumber;

    private String  refuseDesc;

    private OdOrder order;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath;
    }

    public void setGoodsUnit(String goodsUnit)
    {
        this.goodsUnit = goodsUnit;
    }

    public String getGoodsUnit() 
    {
        return goodsUnit;
    }
    public void setQuantity(Integer quantity) 
    {
        this.quantity = quantity;
    }

    public Integer getQuantity() 
    {
        return quantity;
    }
    public void setPrice(String price)
    {
        this.price = price;
    }

    public String getPrice()
    {
        return price;
    }
    public void setAmount(String amount)
    {
        this.amount = amount;
    }

    public String getAmount()
    {
        return amount;
    }
    public void setScoringTime(Date scoringTime) 
    {
        this.scoringTime = scoringTime;
    }

    public Date getScoringTime() 
    {
        return scoringTime;
    }
    public void setScore(Integer score) 
    {
        this.score = score;
    }

    public Integer getScore() 
    {
        return score;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setReply(String reply) 
    {
        this.reply = reply;
    }

    public String getReply() 
    {
        return reply;
    }
    public void setServiceStatus(String serviceStatus) 
    {
        this.serviceStatus = serviceStatus;
    }

    public String getServiceStatus() 
    {
        return serviceStatus;
    }
    public void setApplicationTime(Date applicationTime) 
    {
        this.applicationTime = applicationTime;
    }

    public Date getApplicationTime() 
    {
        return applicationTime;
    }
    public void setServiceType(String serviceType) 
    {
        this.serviceType = serviceType;
    }

    public String getServiceType() 
    {
        return serviceType;
    }
    public void setServiceQuantity(Integer serviceQuantity) 
    {
        this.serviceQuantity = serviceQuantity;
    }

    public Integer getServiceQuantity() 
    {
        return serviceQuantity;
    }
    public void setServiceAmount(String serviceAmount)
    {
        this.serviceAmount = serviceAmount;
    }

    public String getServiceAmount()
    {
        return serviceAmount;
    }
    public void setServiceRemarks(String serviceRemarks) 
    {
        this.serviceRemarks = serviceRemarks;
    }

    public String getServiceRemarks() 
    {
        return serviceRemarks;
    }
    public void setServicePicture(String servicePicture) 
    {
        this.servicePicture = servicePicture;
    }

    public String getServicePicture() 
    {
        return servicePicture;
    }

    public String getExpressCompany() {
        return expressCompany;
    }

    public void setExpressCompany(String expressCompany) {
        this.expressCompany = expressCompany;
    }

    public String getExpressNumber() {
        return expressNumber;
    }

    public void setExpressNumber(String expressNumber) {
        this.expressNumber = expressNumber;
    }

    public String getRefuseDesc() {
        return refuseDesc;
    }

    public void setRefuseDesc(String refuseDesc) {
        this.refuseDesc = refuseDesc;
    }

    public OdOrder getOrder() {
        return order;
    }

    public void setOrder(OdOrder order) {
        this.order = order;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("orderCode", getOrderCode())
            .append("goodsId", getGoodsId())
            .append("goodsUnit", getGoodsUnit())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("amount", getAmount())
            .append("scoringTime", getScoringTime())
            .append("score", getScore())
            .append("comment", getComment())
            .append("reply", getReply())
            .append("serviceStatus", getServiceStatus())
            .append("applicationTime", getApplicationTime())
            .append("serviceType", getServiceType())
            .append("serviceQuantity", getServiceQuantity())
            .append("serviceAmount", getServiceAmount())
            .append("serviceRemarks", getServiceRemarks())
            .append("servicePicture", getServicePicture())
            .toString();
    }
}
